class MyArray<T>{
    public Object[] array = new Object[10];
    public void set(int pos,T val){
        array[pos] = val;
    }
    public T get(int pos){
        return (T)array[pos];
    }

}
public class demo {
    public static void main(String[] args) {
        int i = 10;
        Integer i1 = Integer.valueOf(i);
        Integer i2 = i;

        int i3 = i1.intValue();

        MyArray<String> myArray = new MyArray<>();
        myArray.set(0,"hello");
        System.out.println(myArray.get(0));

        MyArray<Integer> myArray1 = new MyArray<>();
        myArray1.set(0,111111);
        System.out.println(myArray1.get(0));


    }
}
